﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MyPublisher.Windows.Controls.Primitives
{
    public static class InstanceOf<T> where T : new()
    {
        private static T _instance;
        public static T GetInstance()
        {
            if (_instance == null)
            {
                _instance = new T();
            }
            return _instance;
        }
    }

}
